package com.lgmshare.k3.model;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @author lim
 * @description: TODO
 * @email lgmshare@gmail.com
 * @datetime 2016/8/25 10:34
 */
public class Merchant extends BaseBean {


    /**
     * id : 1000008
     * uid : 1000022
     * brand : 靓丹红
     * title : 靓丹红鞋厂
     * phone : 13968677261
     * qq : 2831803630
     * district : 联夹大道
     * address : 联夹大道57号
     * avatar :
     * certified_type : 1
     * is_manufacturer : 厂家直销
     * is_top100 : 1
     * create_time : 2014-03-10 16:25:21
     * longitude : null
     * latitude : null
     * market_id : 1002
     * list_tags : ["联夹大道","厂家直销","金牌厂家"]
     * certified : 认证商家
     * gold_medal : 金牌厂家
     * market : 夹屿
     * follow : false
     * productNum : 10
     * sellerNum : 99
     * level : 10
     * level_pic : http://www.k3.cn/images/slevel/s_10.gif
     * newProduct : [{"id":"1216499","index_image":"http://img.k3cdn.com/k/1000022/2016051011401951344828_550x550.jpg"},{"id":"1203665","index_image":"http://img.k3cdn.com/k/1000022/2016041913143731751583_550x550.jpg"},{"id":"1159424","index_image":"http://img.k3cdn.com/k/1000022/2016021710135812853963_550x550.jpg"},{"id":"1159421","index_image":"http://img.k3cdn.com/k/1000022/2016021710148038527374_550x550.jpg"}]
     */

    private String id;
    private String uid;
    private String brand;
    private String title;
    private List<String> phone;
    private String qq;
    private String district;
    private String address;
    private String avatar;
    private String certified_type;
    private String is_manufacturer;
    private String is_top100;
    private String create_time;
    private String longitude;
    private String latitude;
    private String market_id;
    private String certified;
    private String gold_medal;
    private String market;
    private String productNum;
    private String sellerNum;
    private String level;
    private String level_pic;
    private boolean follow;
    private List<String> list_tags;
    /**
     * id : 1216499
     * index_image : http://img.k3cdn.com/k/1000022/2016051011401951344828_550x550.jpg
     */
    private List<NewProductBean> newProduct;
    /**
     * shelf_num : 0
     * unshelve_num : 0
     */

    private int shelf_num;
    private int unshelve_num;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhone() {
        String text = "";
        for (String s : phone) {
            if (TextUtils.isEmpty(text)) {
                text += s;
            } else {
                text += "  " + s;
            }
        }
        return text;
    }

    public List<String> getListPhone() {
        return phone;
    }

    public void setPhone(List<String> phone) {
        this.phone = phone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCertified_type() {
        return certified_type;
    }

    public void setCertified_type(String certified_type) {
        this.certified_type = certified_type;
    }

    public String getIs_manufacturer() {
        return is_manufacturer;
    }

    public void setIs_manufacturer(String is_manufacturer) {
        this.is_manufacturer = is_manufacturer;
    }

    public String getIs_top100() {
        return is_top100;
    }

    public void setIs_top100(String is_top100) {
        this.is_top100 = is_top100;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getMarket_id() {
        return market_id;
    }

    public void setMarket_id(String market_id) {
        this.market_id = market_id;
    }

    public String getCertified() {
        return certified;
    }

    public void setCertified(String certified) {
        this.certified = certified;
    }

    public String getGold_medal() {
        return gold_medal;
    }

    public void setGold_medal(String gold_medal) {
        this.gold_medal = gold_medal;
    }

    public String getMarket() {
        return market;
    }

    public void setMarket(String market) {
        this.market = market;
    }

    public String getProductNum() {
        return productNum;
    }

    public void setProductNum(String productNum) {
        this.productNum = productNum;
    }

    public String getSellerNum() {
        return sellerNum;
    }

    public void setSellerNum(String sellerNum) {
        this.sellerNum = sellerNum;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getLevel_pic() {
        return level_pic;
    }

    public void setLevel_pic(String level_pic) {
        this.level_pic = level_pic;
    }

    public boolean isFollow() {
        return follow;
    }

    public void setFollow(boolean follow) {
        this.follow = follow;
    }

    public List<String> getList_tags() {
        return list_tags;
    }

    public void setList_tags(List<String> list_tags) {
        this.list_tags = list_tags;
    }

    public List<NewProductBean> getNewProduct() {
        return newProduct;
    }

    public void setNewProduct(List<NewProductBean> newProduct) {
        this.newProduct = newProduct;
    }

    public int getShelf_num() {
        return shelf_num;
    }

    public void setShelf_num(int shelf_num) {
        this.shelf_num = shelf_num;
    }

    public int getUnshelve_num() {
        return unshelve_num;
    }

    public void setUnshelve_num(int unshelve_num) {
        this.unshelve_num = unshelve_num;
    }

    public static class NewProductBean implements Serializable {
        private String id;
        private String index_image;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIndex_image() {
            return index_image;
        }

        public void setIndex_image(String index_image) {
            this.index_image = index_image;
        }
    }
}
